package com._9xcloud.leaverequest.service;


import com._9xcloud.leaverequest.domain.College;
import com._9xcloud.leaverequest.domain.Teacher;
import com._9xcloud.leaverequest.domain.TeacherLevel;

import java.util.List;

/**
 * Created by hyq on 2015/5/10.
 */
public interface TeacherService {
    Teacher loadUserByUsername(String username);

    Teacher authenticate(String username, String password);

    Teacher getById(int teacherId);

    void changePassword(int teacherId, String oldPassword, String newPassword);

    Teacher create(String fullName, String username, String password, College college, TeacherLevel level);

    void removeAll();

    List<Teacher> getAll();

    List<Teacher> getAllByCollegeId(int collegeId);
}
